﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WorkBasket.Data.Entities;
using WorkBasket.Data.Repository;
using WorkBasket.Infrastructure;
using System.Data.SqlClient;

namespace WorkBasket.Models
{

    public class DashModel
    {
        private SOC soc = new SOC(new MyContext());
        public  IQueryable<InviteModel>  NewInvitations
        {
            get{
 
                string CurrentUser = AuthFunctions.CurrentUserID();
                return soc.Execute<InviteModel>("NewInvitationsByUserID @UserID", new SqlParameter("UserID", CurrentUser));

            }
        }
        public class InviteModel:Invite
        {
            public string UnitName { get; set; }
        }

    }
}